#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_testbroadcast.h"

#include <QUdpSocket>

class testbroadcast : public QMainWindow
{
    Q_OBJECT
private slots:
    void on_pushButton_broadcast_clicked();
    void on_pushButton_multicast_clicked();
    void OnReadDatagram();
public:
    explicit testbroadcast(QWidget *parent = Q_NULLPTR);
    ~testbroadcast();
protected:
    void OnInitDialog();
private:
    void InitSocket();
private:
    Ui::testbroadcastClass ui;
    QUdpSocket* m_sender;
    QUdpSocket* m_receiver;
};
